package ai.ii.commander.manager.launcher.controller;


import ai.ii.commander.common.event.core.EventService;
import ai.ii.commander.user.publish.IMqPublishService;
import ai.ii.commander.user.publish.event.UserInsertEvent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller {

    @Autowired
    private EventService eventService;
//
//    @Autowired
//    private IMqPublishService publishService;


    @GetMapping("/test")
    public void test(){
        UserInsertEvent userInsertEvent = new UserInsertEvent();
        userInsertEvent.setEventId("1");

//        UserUpdateEvent userUpdateEvent = new UserUpdateEvent();
//        userUpdateEvent.setEventId("2");
//
//        UserDisableEvent userDisableEvent = new UserDisableEvent();
//        userDisableEvent.setEventId("3");

//        publishService.publishEvent(userInsertEvent);
//        publishService.publishEvent(userUpdateEvent);
//        publishService.publishEvent(userDisableEvent);
    }
}
